package com.zdxlz.desensitize.constant;

/**
 * 正则表达式常量
 */
public class RegularConstant {
    private RegularConstant() {}
    /**
     * 4个星
     */
    public static final String FOUR_STARS = "****";

    public static final char STAR = '*';

    public static final String EMPTY = "";
    /**
     * 中国手机号校验正则表达式
     */
    public static final String CN_PHONE_PATTERN = "^1[3-9]\\d{9}$";

    /**
     * 邮箱校验正则表达式
     */
    public static final String MAIL_PATTERN = "^[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*\\.[a-zA-Z]{2,}$";

    /**
     * 中国军官证校验正则表达式
     */
    public static final String CN_OFFICER_CARD_PATTERN = "^[\\u4e00-\\u9fa5]{1}[字第]{1}[0-9a-zA-Z]{6}$";

    /**
     * 19位或20位iccid正则表达式
     */
    public static final String ICCID_PATTERN = "^\\d{19}[0-9A-F]?$";

    /**
     * 中国身份证正则表达式
     */
    public static final String CN_IDCARD_PATTERN = "^[1-9]\\d{5}(18|19|20)\\d{2}(0\\d|10|11|12)([0-2]\\d|30|31)\\d{3}[0-9Xx]$";

    /**
     * 地址
     */
    public static final String CN_ADDRESS_PATTERN = "^([\\u4e00-\\u9fa5]+省)?([\\u4e00-\\u9fa5]+市)?([\\u4e00-\\u9fa5]+区)?";
}
